package com.sambo.inspection.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;

import com.sambo.inspection.R;
import com.sambo.inspection.activity.support.BaseActivity;
import com.sambo.inspection.bean.PartitionBean;

public class InformationQueryActivity extends BaseActivity implements View.OnClickListener {

    ImageView ivBack;
    RelativeLayout rlPartitionQuery;
    RelativeLayout rlInspectionPointQuery;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_info_query);

        ivBack = findViewById(R.id.iv_back);
        rlPartitionQuery = findViewById(R.id.rl_partition_query);
        rlInspectionPointQuery = findViewById(R.id.rl_inspection_point_query);

        ivBack.setOnClickListener(this);
        rlPartitionQuery.setOnClickListener(this);
        rlInspectionPointQuery.setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.iv_back:
                finish();
                break;
            case R.id.rl_partition_query:
//                PartitionBean bean = new PartitionBean();
//                bean.setName("问题");
//                bean.setCode("110");
//                bean.setAcreage("123");
//                bean.setWater_demand("321");
//                bean.setDesc("文艺文艺文艺文艺文艺文艺文艺");
//                Intent intent = new Intent(this,PartitionDetailsActivity.class);
//                intent.putExtra("model",bean);
//                startActivity(intent);
                Intent intent = new Intent(this, PartitionSearchActivity.class);
                startActivity(intent);
                break;
            case R.id.rl_inspection_point_query:
                Intent intent2 = new Intent(this,InspectionPointSearchActivity.class);
                startActivity(intent2);
                break;
        }
    }
}
